package com.czxy.Demo23;

public class Animal {
    private String id;  // 编号
    private String name;  // 名称

    public Animal() {
    }

    public Animal(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Animal{" +
               "id='" + id + '\'' +
               ", name='" + name + '\'' +
               '}';
    }
}
